package com.jackson.framekafka.service;

/*
 * Author: JacksonCoder
 * FileName: KafkaConsumer
 * Version: 1.0.0
 * Date: 2025/4/13
 */

import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Service;

@Service
public class KafkaConsumer {

    @KafkaListener(topics= "test-topic",groupId = "my-group")
    public void listen(String message){
        System.out.println("Received message: " + message);
    }

}
